<!DOCTYPE html>

<head>
    <meta charset="utf-8">
    <title>智能门禁管理平台</title>
    <meta name="description" content="iBase4J." />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta http-equiv="Expires" content="0">
    <meta http-equiv="Cache-Control" content="no-store">
    <meta http-equiv="Pragma" content="no-cache">
    <meta name="robots" content="noindex,nofollow">
    <meta name="author" content="">
    <!-- Loading Bootstrap -->
    <link href="lib/flat-ui/css/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <link href="lib/css/animate.css" rel="stylesheet" type="text/css" />
    <link href="lib/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
    <link href="lib/css/simple-line-icons.css" rel="stylesheet" type="text/css" />
    <link href="lib/angular/toaster.css" rel="stylesheet" type="text/css" />
    <link href="lib/angular/ng-img-crop.css" rel="stylesheet" type="text/css" />
    <link href="lib/angular/angular-ui-tree.min.css" rel="stylesheet" type="text/css">
    <link href="lib/angular/isteven-multi-select.css" rel="stylesheet" type="text/css">
    <!-- Loading Flat UI -->
    <link href="lib/flat-ui/css/flat-ui.css" rel="stylesheet" type="text/css" />
    <!-- Loading APP -->
    <link href="res/css/font.css" rel="stylesheet" type="text/css" />
    <!--清除样式缓存的方法，商用后可以用下面注释的方法-->
    <script type="text/javascript">
    document.write("<link rel='stylesheet' type='text/css' href='res/css/app.css?v=" + new Date().getTime() + "'>");
    </script>
    <!--<link href="res/css/app.css" rel="stylesheet" type="text/css"/>-->
    <link rel="stylesheet" href="//at.alicdn.com/t/font_413565_hhvm53nbjjzfflxr.css">
    <!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
    <!--[if lt IE 9]>
    <script src="lib/flat-ui/vendor/html5shiv.js"></script>
    <script src="lib/flat-ui/vendor/respond.min.js"></script>
    <![endif]-->
</head>

<body data-ng-app="app" data-ng-controller="AppCtrl">
    <div data-ui-view class="mainDiv"></div>
    <!-- JQUERY -->
    <script src="lib/jquery/jquery.min.js"></script>
    <script src="lib/jquery/jquery.validate.min.js"></script>
    <script src="lib/jquery/additional-methods.min.js"></script>
    <script src="lib/flat-ui/js/vendor/video.js"></script>
    <script src="lib/flat-ui/js/flat-ui.min.js"></script>
    <!-- ANGULARJS -->
    <script src="lib/angular/angular.min.js"></script>
    <script src="lib/angular/ocLazyLoad.min.js"></script>
    <script src="lib/angular/angular-animate.min.js"></script>
    <script src="lib/angular/angular-sanitize.min.js"></script>
    <script src="lib/angular/angular-resource.min.js"></script>
    <script src="lib/angular/angular-ui-router.js"></script>
    <script src="lib/angular/angular-validation-rule.min.js"></script>
    <script src="lib/angular/angular-validation.min.js"></script>
    <!-- <script src="lib/angular/angular-cookies.js"></script> -->
    <script src="lib/angular/ngStorage.js"></script>
    <script src="lib/angular/ui-load.js"></script>
    <script src="lib/angular/ui-utils.min.js"></script>
    <script src="lib/angular/paging.js"></script>
    <script src="lib/angular/ng-img-crop.js"></script>
    <script src="lib/angular/angular-ui-tree.min.js"></script>
    <script src="lib/angular/isteven-multi-select.js"></script>
    <script src="lib/angular/ui-bootstrap-tpls.js"></script>
    <script src="lib/angular/ng-file-upload.min.js"></script>
    <script src="lib/angular/ng-file-upload-shim.min.js"></script>
    <!--引入日期显示中文文件-->
    <script src="lib/angular/angular-locale_zh-cn.js"></script>
    <!-- APP -->
    <script src="src/app/main.js"></script>
    <script src="src/app/config.js"></script>
    <script src="src/app/config-router.js"></script>
    <!--引入echarts.js-->
    <script src="lib/jquery/echarts.js"></script>
    <script src="lib/jquery/china.js"></script>
    <!--百度地图-->
    <!--<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=VQEvQ3CP3vkR4jPbpjUs80S8"></script>-->
    <script type="text/javascript" src="https://api.map.baidu.com/api?v=2.0&ak=VQEvQ3CP3vkR4jPbpjUs80S8&s=1"></script>
    <!--页面模板-->
    <script type="text/ng-template" id="angularTreeTemplate">
        <div ui-tree-handle class="tree-node tree-node-content angular-ui-tree-handle clearfix">
            <a class="glyphicon-btn" ng-if="item.children && item.children.length > 0" data-nodrag ng-click="toggle(this)">
                <!--<span class="glyphicon" ng-class="{'glyphicon glyphicon-plus': collapsed, 'glyphicon glyphicon-minus': !collapsed }"></span>-->
                <span ng-show="!collapsed" class="jiajian">-</span>
                <span ng-show="collapsed" class="jiajian">+</span>
            </a>
            <span ng-show="!item.isEdit" class="regionNmae">
                 {{ item.regionname | limitTo: 5 }}{{item.regionname.length > 5 ? '...' : ''}}
         </span>
            <span ng-show="item.isEdit">
                <input style="width:40%" type="text" data-nodrag ng-model="item.regionname"/>
         </span>
            <div class="floatRight">
                <a ng-hide="item.children.length>0||item.level==0" class=" btn btn-danger btn-xs  " data-nodrag ng-click="delItem(item)">
                <span class="glyphicon glyphicon-remove"></span>
            </a>
                <a class=" btn btn-primary btn-xs " data-nodrag ng-click="newSubItem(item)">
                <span class="glyphicon glyphicon-plus"></span>
            </a>
                <a class=" btn btn-warning btn-xs " data-nodrag ng-click="editItem(item)">
                <span class="glyphicon glyphicon-edit"></span>
            </a>
            </div>
        </div>
        <ol ui-tree-nodes="" ng-model="item.children" ng-class="{hidden: collapsed}">
            <li ng-repeat="item in item.children" ui-tree-node data-nodrag ng-include="'angularTreeTemplate'">
            </li>
        </ol>
    </script>
    <!--<script type="text/ng-template" id="angularTreeTemplate">-->
    <!--<div ui-tree-handle class="tree-node tree-node-content angular-ui-tree-handle clearfix">-->
    <!--<a class="glyphicon-btn" ng-if="item.children && item.children.length > 0" data-nodrag ng-click="toggle(this)">-->
    <!--<span class="iconfont" ng-class="{'icon-jiahao1': collapsed, 'icon-jianhao1': !collapsed }"></span>-->
    <!--</a>-->
    <!--<a class="glyphicon-btn" ng-if="item.children && item.children.length <= 0" data-nodrag ng-click="toggle(this)">-->
    <!--<span style="display: inline-block;width: 6px;border: none;"></span>-->
    <!--</a>-->
    <!--<span ng-show="!item.isEdit" class="regionNmae"ng-click="clickRegion(item.regionid,item.regionname);">-->
    <!--&lt;!&ndash;{{ item.regionname | limitTo: 5 }}{{item.regionname.length > 5 ? '...' : ''}}&ndash;&gt;-->
    <!--{{item.regionname}}-->
    <!--</span>-->
    <!--<span ng-show="item.isEdit">-->
    <!--<input style="width:40%" type="text" data-nodrag ng-model="item.regionname" />-->
    <!--</span>-->
    <!--<div class="floatRight">-->
    <!--<a ng-hide="item.children.length>0||item.level==0" class="" data-nodrag ng-click="delItem(item)">-->
    <!--<span class="iconfont icon-jianshao"></span>-->
    <!--</a>-->
    <!--<a class="" data-nodrag ng-click="newSubItem(item)">-->
    <!--<span class="iconfont icon-jia"></span>-->
    <!--</a>-->
    <!--<a class="" data-nodrag ng-click="editItem(item)">-->
    <!--<span class="iconfont icon-bianji"></span>-->
    <!--</a>-->
    <!--</div>-->
    <!--</div>-->
    <!--<ol ui-tree-nodes="" ng-model="item.children" ng-class="{hidden: collapsed}">-->
    <!--<li ng-repeat="item in item.children" ui-tree-node data-nodrag ng-include="'angularTreeTemplate'">-->
    <!--</li>-->
    <!--</ol>-->
    <!--</script>-->
    <script type="text/ng-template" id="addRegion.html">
        <div class="modal-header">
            <h6 class="modal-title">添加区域</h6>
        </div>
        <div class="modal-body">
            <div class="h7">当前父级区域： <b>{{regionname}}</b></div>
            <div>
                <input type="text" class="form-control" ng-model="addregionname" placeholder="区域名称">
                <input type="hidden" class="form-control" ng-model="parentregionid" value="{{parentregionid}}" />
            </div>
        </div>
        <div class="modal-footer">
            <button class="btn btn-primary new-primary" ng-click="addRegion()">确认</button>
            <button class="btn btn-warning addNew" ng-click="cancel()">取消</button>
        </div>
    </script>
    <script type="text/ng-template" id="delRegion.html">
        <div class="modal-header">
            <h6 class="modal-title">删除区域</h6>
        </div>
        <div class="modal-body">
            <div class="h7">此操作会删除： <b style="color:red;">{{regionname}}，及其子区域</b>，请确认</div>
            <input type="hidden" class="form-control" ng-model="regionid" value="{{regionid}}" />
        </div>
        <div class="modal-footer">
            <button class="btn btn-primary new-primary" ng-click="delRegion()">确认</button>
            <button class="btn btn-warning addNew" ng-click="cancel()">取消</button>
        </div>
    </script>
    <script type="text/ng-template" id="updateRegion.html">
        <div class="modal-header">
            <h3 class="modal-title">修改区域</h3>
        </div>
        <div class="modal-body">
            <div class="h7">当前区域： <b>{{regionname}}</b></div>
            <div class="h7">新的区域：
                <input type="text" class="form-control" ng-model="edtregionname" value="{{regionname}}">
            </div>
            <input type="hidden" class="form-control" ng-model="regionid" value="{{regionid}}" />
        </div>
        <div class="modal-footer">
            <button class="btn btn-primary new-primary" ng-click="updateRegion()">确认</button>
            <button class="btn btn-warning addNew" ng-click="cancel()">取消</button>
        </div>
    </script>
    <script type="text/ng-template" id="houseRegionTreeTemplate">
        <div ui-tree-handle class="tree-node tree-node-content angular-ui-tree-handle" style="line-height: 40px;">
            <a class="glyphicon-btn hover-background" ng-if="item.children && item.children.length > 0" data-nodrag ng-click="toggle(this)">
            <span ng-show="!collapsed" class="jiajian">-</span>
            <span ng-show="collapsed" class="jiajian">+</span>
        </a>
            <a class="glyphicon-btn" ng-if="item.children && item.children.length <= 0" data-nodrag ng-click="toggle(this)">
            <span style="border: none"></span>
        </a>
            <span ng-click="clickRegion(item.regionid,item.regionname);" title="{{item.regionname}}" ng-class="{textColorHight:param.regionId == item.regionid}"> {{ item.regionname | limitTo: 5 }}{{item.regionname.length > 5 ? '...' : ''}}</span>
        </div>
        <ol ui-tree-nodes="" style="padding-left:15px;" ng-model="item.children" ng-class="{hidden: collapsed}">
            <li ng-repeat="item in item.children" ui-tree-node data-nodrag ng-include="'houseRegionTreeTemplate'" collapsed="item.collapsed?false:true">
            </li>
        </ol>
    </script>
    <script type="text/ng-template" id="listdelRegion.html">
        <div class="modal-header">
            <h6 class="modal-title">删除区域</h6>
        </div>
        <div class="modal-body">
            <div class="h7">此操作会删除： <b style="color:red;">{{regionname}}，及其子区域</b>，请确认</div>
            <input type="hidden" class="form-control" ng-model="regionid" value="{{regionid}}" />
        </div>
        <div class="modal-footer">
            <button class="btn btn-primary new-primary" ng-click="delRegion()">确认</button>
            <button class="btn btn-warning addNew" ng-click="cancel()">取消</button>
        </div>
    </script>
    <script type="text/ng-template" id="bmBuildingList.html">
        <!-- 内容区域 -->
        <div ng-hide="loading" class="wrapper-md content wrapper-md2">
            <!-- 数据显示 -->
            <div class="wrapper-data clearfix">
                <div class="panel panel-default clearfix">
                    <!-- 头部 -->
                    <div class="panel-heading clearfix">
                        <div class="w-auto">
                            <form ng-submit="search()" class="form-inline">
                                <div class="form-group" style="width: 40%;">
                                    <label for="buildingName">楼栋名称：</label>
                                    <input type="text" class="form-control" style="width: 180px" id="buildingName" placeholder="" ng-model="param.buildingName">
                                </div>
                                <div class="form-group" style="width: 40%;">
                                    <label for="buildingAddress">楼栋地址：</label>
                                    <input type="text" class="form-control" id="buildingAddress" style="width: 180px" placeholder="" ng-model="param.buildingAddress">
                                </div>
                                <button type="submit" class="btn btn-primary new-primary" style="margin-left: 10px">查询</button>
                            </form>
                        </div>
                    </div>
                    <!-- 数据表格 -->
                    <div class="table-responsive">
                        <table class="table table-striped b-t b-light text-center">
                            <thead>
                                <tr>
                                    <th>楼栋名称</th>
                                    <th>楼栋地址</th>
                                    <th>楼栋地址编号</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr ng-repeat="item in pageInfo.data">
                                    <td class="v-middle">{{item.buildingname}}</td>
                                    <td class="v-middle">{{item.buildingaddress}}</td>
                                    <td class="v-middle">{{item.buildingno}}</td>
                                    <td class="v-middle">
                                        <a ng-click="select(item.buildingid,item.buildingname,item.buildingaddress)">选择</a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <span data-ng-include=" 'src/tpl/pageInfo.html' "></span>
                </div>
            </div>
            <!-- /.wrapper-data -->
        </div>
        <!-- /.wrapper-md -->
        <div class="modal-footer">
            <button class="btn btn-warning addNew" ng-click="cancel()">取消</button>
            <button class="btn btn-warning addNew" ng-click="clear()">清除</button>
        </div>
    </script>
    <script type="text/ng-template" id="bmSeatList.html">
        <!-- 内容区域 -->
        <div ng-hide="loading" class="wrapper-md content">
            <!-- 数据显示 -->
            <div class="wrapper-data clearfix">
                <div class="panel panel-default clearfix">
                    <!-- 头部 -->
                    <div class="panel-heading clearfix">
                        <div class="w-auto">
                            <form ng-submit="search()" class="form-inline">
                                <div class="form-group">
                                    <label for="seatName">楼座名称：</label>
                                    <input type="text" class="form-control" style="width: 180px" id="seatName" placeholder="" ng-model="param.seatName">
                                </div>
                                <div class="form-group">
                                    <button type="submit" class="btn btn-primary new-primary" style="margin-left: 10px">查询</button>
                                </div>
                            </form>
                        </div>
                    </div>
                    <!-- 数据表格 -->
                    <div class="table-responsive">
                        <table class="table table-striped b-t b-light text-center">
                            <thead>
                                <tr>
                                    <th>楼座名称</th>
                                    <th>所属区域</th>
                                    <th>所属楼栋</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr ng-repeat="item in pageInfo.data">
                                    <td class="v-middle">{{item.seatname}}</td>
                                    <td class="v-middle">{{item.regionname}}</td>
                                    <td class="v-middle">{{item.buildingname}}</td>
                                    <td class="v-middle">
                                        <a ng-click="select(item.seatid,item.seatname)">选择</a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <!-- /.table-responsive -->
                    <!-- 底部分页 -->
                    <span data-ng-include=" 'src/tpl/pageInfo.html' ">
                </span>
                </div>
            </div>
            <!-- /.wrapper-data -->
        </div>
        <!-- /.wrapper-md -->
        <div class="modal-footer">
            <button class="btn btn-warning addNew" ng-click="cancel()">取消</button>
            <button class="btn btn-warning addNew" ng-click="clear()">清除</button>
        </div>
    </script>
    <script type="text/ng-template" id="bmFloorList.html">
        <!-- 内容区域 -->
        <div ng-hide="loading" class="wrapper-md content">
            <!-- 数据显示 -->
            <div class="wrapper-data clearfix">
                <div class="panel panel-default clearfix">
                    <!-- 头部 -->
                    <div class="panel-heading">
                        <div class="w-auto">
                            <form ng-submit="search()" class="form-inline">
                                <div class="form-group">
                                    <label for="identity">楼座名称：</label>
                                    <input type="text" class="form-control" style="width: 180px" id="identity" placeholder="" ng-model="param.seatName">
                                </div>
                                <div class="form-group">
                                    <button type="submit" class="btn btn-primary new-primary" style="margin-left: 10px">查询</button>
                                </div>
                            </form>
                        </div>
                    </div>
                    <!-- 数据表格 -->
                    <div class="table-responsive">
                        <table class="table table-striped b-t b-light text-center">
                            <thead>
                                <tr>
                                    <th>楼层名称</th>
                                    <th>所属区域</th>
                                    <th>所属楼栋</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr ng-repeat="item in pageInfo.data">
                                    <td class="v-middle">{{item.floorname}}</td>
                                    <td class="v-middle">{{item.regionname}}</td>
                                    <td class="v-middle">{{item.buildingname}}</td>
                                    <td class="v-middle">
                                        <a ng-click="select(item.floorid,item.floorname)">选择</a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <!-- /.table-responsive -->
                    <!-- 底部分页 -->
                    <span data-ng-include=" 'src/tpl/pageInfo.html' ">
                </span>
                </div>
            </div>
            <!-- /.wrapper-data -->
        </div>
        <!-- /.wrapper-md -->
        <div class="modal-footer">
            <button class="btn btn-warning addNew" ng-click="cancel()">取消</button>
            <button class="btn btn-warning addNew" ng-click="clear()">清除</button>
        </div>
    </script>
    <script type="text/ng-template" id="dmDeviceList.html">
        <!-- 内容区域 -->
        <div ng-hide="loading" class="wrapper-md content wrapper-md2">
            <!-- 数据显示 -->
            <div class="wrapper-data clearfix ">
                <div class="panel panel-default clearfix">
                    <!-- 头部 -->
                    <div class="panel-heading">
                        <div class="w-auto">
                            <form ng-submit="search()" class="form-inline">
                                <div class="form-group" style="width: 30%;">
                                    <label for="deviceCode">设备编码：</label>
                                    <input type="text" class="form-control" style="width: 180px" id="deviceCode" ng-model="param.deviceCode">
                                </div>
                                <div class="form-group" style="width: 30%;">
                                    <label for="deviceName">设备名称：</label>
                                    <input type="text" class="form-control" style="width: 180px" id="deviceName" placeholder="" ng-model="param.deviceName">
                                </div>
                                <div class="form-group" style="width: 30%;">
                                    <label for="address">楼栋地址：</label>
                                    <input type="text" class="form-control" style="width: 180px" id="address" placeholder="" ng-model="param.address">
                                </div>
                                <button type="submit" class="btn btn-primary new-primary" style="margin-left: 10px">查询</button>
                            </form>
                        </div>
                    </div>
                    <!-- 数据表格 -->
                    <div class="table-responsive">
                        <table class="table table-striped b-t b-light text-center">
                            <thead>
                                <tr>
                                    <th>设备编码</th>
                                    <th>设备名称</th>
                                    <th>楼栋地址</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr ng-repeat="item in pageInfo.data">
                                    <td class="v-middle">{{item.deviceCode}}</td>
                                    <td class="v-middle">{{item.deviceName}}</td>
                                    <td class="v-middle">{{item.address}}</td>
                                    <td class="v-middle">
                                        <a ng-click="select(item)">选择</a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <!-- /.table-responsive -->
                    <!-- 底部分页 -->
                    <span data-ng-include=" 'src/tpl/pageInfo.html' "></span>
                </div>
                <!-- /.panel -->
            </div>
            <!-- /.wrapper-data -->
        </div>
        <!-- /.wrapper-md -->
        <div class="modal-footer">
            <button class="btn btn-warning addNew" ng-click="cancel()">取消</button>
        </div>
    </script>
    <script type="text/ng-template" id="treeSelContent.html">
        <div ng-hide="loading" class="wrapper-md content wrapper-md2">
            <!-- 数据显示 -->
            <div class="wrapper-data clearfix">
                <div class="panel panel-default clearfix">
                    <div ui-tree="treeOptions" id="tree-root" class="quyushu-ui">
                        <ol ui-tree-nodes ng-model="angularTreeList">
                            <li ng-repeat="item in angularTreeList" ui-tree-node ng-include="'treeSelTemplate.html'">
                            </li>
                        </ol>
                    </div>
                </div>
                <!-- /.panel -->
            </div>
            <!-- /.wrapper-data -->
        </div>
        <div class="modal-footer">
            <button class="btn btn-warning addNew" ng-click="cancel()">取消</button>
        </div>
    </script>
    <script type="text/ng-template" id="treeSelTemplate.html">
        <div ui-tree-handle class="tree-node tree-node-content angular-ui-tree-handle">
            <a class="btn btn-success btn-xs" ng-if="item.children && item.children.length > 0" data-nodrag ng-click="toggle(this)">
           <span class="glyphicon"ng-class="{'glyphicon glyphicon-plus': collapsed, 'glyphicon glyphicon-minus': !collapsed }"></span>
        </a>
            <span>{{ item.regionname}}
            <span class="btn btn-warning btn-xs addNew" style="margin-left:30px;"ng-click="selectRegion(item.regionid,item.regionname)">
                选择
            </span>
            </span>
        </div>
        <ol ui-tree-nodes="" style="padding-left:10px;" ng-model="item.children" ng-class="{hidden: collapsed}">
            <li ng-repeat="item in item.children" ui-tree-node data-nodrag ng-include="'treeSelTemplate.html'">
            </li>
        </ol>
    </script>
    <script type="text/ng-template" id="selUserTree.html">
        <!-- 内容区域 -->
        <div class="wrapper-md content" style="min-height:100px;">
            <!-- 数据显示 -->
            <div class="wrapper-data clearfix">
                <div class="panel panel-default clearfix">
                    <div class="col-lg-2 tree-col-lg-2">
                        <div ui-tree="treeOptions" id="tree-root">
                            <ol ui-tree-nodes ng-model="angularTreeList">
                                <li ng-repeat="item in angularTreeList" ui-tree-node ng-include="readonly?'angularTreeReadOnlyTemplate':'houseRegionTreeTemplate'">
                                </li>
                            </ol>
                        </div>
                    </div>
                    <table style="width: 84%;">
                        <tr>
                            <td valign="top">
                                <div class="panel-heading clearfix">
                                    <h6 style="font-size:16px;">当前区域：
                                    <span ng-show="regionName==null">全部</span>
                                    <span ng-show="regionName!=null" ng-bind="regionName"></span>
                                </h6>
                                    <div class="w-auto">
                                        <form ng-submit="queryPerson()" class="form-inline">
                                            <div class="form-group" style="width: 20%;">
                                                <label for="identity">姓名：</label>
                                                <input type="text" class="form-control" id="identity" ng-model="param.personName" name="identity" style="max-width:60%">
                                            </div>
                                            <div class="form-group" style="width: 20%;">
                                                <label for="sex">性别：</label>
                                                <select class="form-control" ng-model="param.sex" id="sex" style="max-width:100px">
                                                    <option value=""></option>
                                                    <option value="1">男</option>
                                                    <option value="2">女</option>
                                                </select>
                                            </div>
                                            <div class="form-group" style="width: 40%;">
                                                <label for="IDCardNo">身份证号：</label>
                                                <input type="text" class="form-control" name="IDCardNo" id="IDCardNo" style="max-width:70%" maxlength="18" ng-model="param.IDCardNo">
                                            </div>
                                            <button type="submit" class="btn btn-primary new-primary">查询</button>
                                        </form>
                                    </div>
                                </div>
                                <!-- 数据表格 -->
                                <div class="table-responsive">
                                    <table class="table table-striped b-t b-light text-center">
                                        <thead>
                                            <tr>
                                                <th>
                                                    <input type="checkbox" ng-click="checkAll($event,data)">
                                                </th>
                                                <th>姓名</th>
                                                <th>性别</th>
                                                <th>身份证</th>
                                                <th>类型</th>
                                                <th>房产地址</th>
                                            </tr>
                                        </thead>
                                        <tbody class="tbody">
                                            <tr ng-repeat="item in pageInfo.data">
                                                <td class="v-middle">
                                                    <input type="checkbox" ng-checked="isChecked(item)" ng-click="clickCheck($event,item)" data-id="{{item}}">
                                                </td>
                                                <td class="v-middle">{{item.personName}}</td>
                                                <td class="v-middle">
                                                    <span ng-show="item.sex==1" class="text-success">男</span>
                                                    <span ng-show="item.sex==2" class="text-success">女</span>
                                                </td>
                                                <td class="v-middle">{{item.IDCardNo}}</td>
                                                <td class="v-middle">
                                                    <span ng-show="item.personType==0">租客</span>
                                                    <span ng-show="item.personType==1">房东</span>
                                                </td>
                                                <td class="v-middle">{{item.censusAddress}}</td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </div>
                                <!-- /.table-responsive -->
                                <!-- 底部分页 -->
                                <span data-ng-include=" 'src/tpl/pageInfo.html' "></span></td>
                        </tr>
                    </table>
                </div>
                <!-- /.panel -->
            </div>
            <!-- /.wrapper-data -->
        </div>
        <!-- /.wrapper-md -->
        <div class="modal-footer">
            <button class="btn btn-primary new-primary" ng-click="sure()">确定</button>
            <button class="btn btn-warning addNew" ng-click="cancel()">取消</button>
        </div>
    </script>
    <!-- 楼栋新增模态框 -->
    <script type="text/ng-template" id="bmBuildingInsert.html">
        <!-- 内容区域 -->
        <div class="wrapper-md content">
            <div class="panel panel-default">
                <!-- 头部 -->
                <div class="panel-heading font-bold">
                    新增楼栋
                </div>
                <!--表单-->
                <div class="panel-body">
                    <form class="form-horizontal" name="house_form">
                        <div class="form-group">
                            <label class="col-lg-1 control-label text-right">楼栋名称：</label>
                            <div class="col-lg-4">
                                <input type="text" class="form-control" name="buildingName" ng-model="record.buildingname" required>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-lg-1 control-label text-right">楼栋地址：</label>
                            <div class="col-lg-4">
                                <input type="text" class="form-control" name="buildingAddress" ng-model="record.buildingaddress" required>
                            </div>
                        </div>
                        <div class="line line-dashed b-b line-lg pull-in"></div>
                        <div class="form-group">
                            <label class="col-lg-1 control-label text-right">楼栋编号：</label>
                            <div class="col-lg-4">
                                <input type="text" class="form-control" name="buildingNumber" ng-model="record.buildingno" required>
                            </div>
                        </div>
                        <div class="form-group">
                            <label name="status" class="col-lg-1 control-label text-right">状态：</label>
                            <div class="col-lg-4">
                                <select class="form-control" ng-model="record.status" name="status">
                                    <option value="1" ng-selected="1">有效</option>
                                    <option value="0">无效</option>
                                </select>
                            </div>
                        </div>
                        <div class="line line-dashed b-b line-lg pull-in"></div>
                        <div class=" text-center">
                            <button class="btn btn-warning addNew" ng-click="cancel()">取消</button>
                            <button class="btn btn-info addNew" ng-click="insertBuilding()" ng-disabled="isDisabled">保存
                            </button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </script>
    <!-- 楼座新增模态框 -->
    <script type="text/ng-template" id="bmSeatInsert.html">
        <!-- 内容区域 -->
        <div class="wrapper-md content">
            <div class="panel panel-default">
                <!-- 头部 -->
                <div class="panel-heading font-bold"> 新增楼座</div>
                <!--表单-->
                <div class="panel-body">
                    <form class="form-horizontal" name="house_form">
                        <div class="form-group">
                            <label class="col-lg-1 control-label text-right"><span class="text-danger wrapper-sm">*</span>楼座名称：</label>
                            <div class="col-lg-4">
                                <input type="text" class="form-control" name="seatName" ng-model="record.seatname">
                            </div>
                        </div>
                        <div class="form-group">
                            <label name="status" class="col-lg-1 control-label text-right">状态：</label>
                            <div class="col-lg-4">
                                <select class="form-control" ng-model="record.status" name="status">
                                    <option value="1" ng-selected="1">有效</option>
                                    <option value="0">无效</option>
                                </select>
                            </div>
                        </div>
                        <div class="line line-dashed b-b line-lg pull-in"></div>
                        <div class="text-center">
                            <button class="btn btn-warning addNew" ng-click="cancel()">取消</button>
                            <button class="btn btn-info addNew" ng-click="insertSeat()" ng-disabled="isDisabled">保存
                            </button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </script>
    <!-- 楼层新增模态框 -->
    <script type="text/ng-template" id="bmFloorInsert.html">
        <!-- 内容区域 -->
        <div class="wrapper-md content">
            <div class="panel panel-default">
                <!-- 头部 -->
                <div class="panel-heading font-bold">新增楼层</div>
                <!--表单-->
                <div class="panel-body">
                    <form class="form-horizontal" name="house_form">
                        <div class="form-group">
                            <label class="col-lg-1 control-label text-right"><span class="text-danger wrapper-sm">*</span>楼层名称：</label>
                            <div class="col-lg-4">
                                <input type="text" class="form-control" name="floorName" ng-model="record.floorname" id="floorname">
                            </div>
                        </div>
                        <div class="form-group">
                            <label name="status" class="col-lg-1 control-label text-right">状态：</label>
                            <div class="col-lg-4">
                                <select class="form-control" ng-model="record.status" name="status">
                                    <option value="1" ng-selected="1">有效</option>
                                    <option value="0">无效</option>
                                </select>
                            </div>
                        </div>
                        <div class="line line-dashed b-b line-lg pull-in"></div>
                        <div class="text-center">
                            <button class="btn btn-warning addNew" ng-click="cancel()">取消</button>
                            <button class="btn btn-info addNew" ng-click="insertFloor()" ng-disabled="isDisabled">保存
                            </button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </script>
    <!-- 地市模态框 -->
    <script type="text/ng-template" id="bmCityList.html">
        <!-- 内容区域 -->
        <div ng-hide="loading" class="wrapper-md content wrapper-md2">
            <!-- 数据显示 -->
            <div class="wrapper-data clearfix">
                <div class="panel panel-default clearfix">
                    <!-- 头部 -->
                    <div class="panel-heading clearfix">
                        <div class="w-auto">
                            <form ng-submit="search()" class="form-inline">
                                <div class="form-group">
                                    <label for="code_text">地市名称：</label>
                                    <input type="text" class="form-control" id="code_text" placeholder="" ng-model="param.code_text">
                                </div>
                                <div class="form-group">
                                    <label for="code_">地市编码：</label>
                                    <input type="text" class="form-control" id="code_" placeholder="" ng-model="param.code_">
                                </div>
                                <div class="line line-dashed b-b line-lg pull-in"></div>
                                <button type="submit" class="btn btn-primary new-primary" style="margin-left: 10px">查询</button>
                            </form>
                        </div>
                    </div>
                    <!-- 数据表格 -->
                    <div class="table-responsive">
                        <table class="table table-striped b-t b-light text-center">
                            <thead>
                                <tr>
                                    <th>地市编码</th>
                                    <th>地市名称</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr ng-repeat="item in pageInfo.data">
                                    <td class="v-middle">{{item.code_}}</td>
                                    <td class="v-middle">{{item.code_text}}</td>
                                    <td class="v-middle">
                                        <a ng-click="select(item.id_,item.code_text,item.code_)">选择</a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <!-- /.table-responsive -->
                    <!-- 底部分页 -->
                    <span data-ng-include=" 'src/tpl/pageInfo.html' ">
                </span>
                </div>
            </div>
            <!-- /.wrapper-data -->
        </div>
        <!-- /.wrapper-md -->
        <div class="modal-footer">
            <button class="btn btn-warning addNew" ng-click="cancel()">取消</button>
            <button class="btn btn-warning addNew" ng-click="clear()">清除</button>
        </div>
    </script>
    <!-- 区县模态框 -->
    <script type="text/ng-template" id="bmAreaList.html">
        <!-- 内容区域 -->
        <div ng-hide="loading" class="wrapper-md content wrapper-md2">
            <!-- 数据显示 -->
            <div class="wrapper-data clearfix">
                <div class="panel panel-default clearfix">
                    <!-- 头部 -->
                    <div class="panel-heading clearfix">
                        <div class="w-auto">
                            <form ng-submit="search()" class="form-inline">
                                <div class="form-group">
                                    <label for="identity">区县名称：</label>
                                    <input type="text" class="form-control" id="identity" placeholder="" ng-model="param.code_text">
                                </div>
                                <div class="form-group">
                                    <label for="code_">区县编码：</label>
                                    <input type="text" class="form-control" id="code_" ng-model="param.code_">
                                </div>
                                <button type="submit" class="btn btn-primary new-primary" style="margin-left: 10px">查询</button>
                            </form>
                        </div>
                    </div>
                    <!-- 数据表格 -->
                    <div class="table-responsive">
                        <table class="table table-striped b-t b-light text-center">
                            <thead>
                                <tr>
                                    <th>区县编码</th>
                                    <th>区县名称</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr ng-repeat="item in pageInfo.data">
                                    <td class="v-middle">{{item.code_}}</td>
                                    <td class="v-middle">{{item.code_text}}</td>
                                    <td class="v-middle">
                                        <a ng-click="select(item.id_,item.code_text,item.code_)">
                                    选择
                                </a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <!-- /.table-responsive -->
                    <!-- 底部分页 -->
                    <span data-ng-include=" 'src/tpl/pageInfo.html' ">
                </span>
                </div>
            </div>
            <!-- /.wrapper-data -->
        </div>
        <!-- /.wrapper-md -->
        <div class="modal-footer">
            <button class="btn btn-warning addNew" ng-click="cancel()">
                取消
            </button>
            <button class="btn btn-warning addNew" ng-click="clear()">
                清除
            </button>
        </div>
    </script>
    <!-- 乡镇街道模态框 -->
    <script type="text/ng-template" id="bmStreetList.html">
        <!-- 内容区域 -->
        <div ng-hide="loading" class="wrapper-md content wrapper-md2">
            <!-- 数据显示 -->
            <div class="wrapper-data clearfix">
                <div class="panel panel-default clearfix">
                    <!-- 头部 -->
                    <div class="panel-heading clearfix">
                        <div class="w-auto">
                            <form ng-submit="search()" class="form-inline">
                                <div class="form-group">
                                    <label for="identity">乡镇/街道名称：
                                    </label>
                                    <input type="text" class="form-control" id="identity" placeholder="" ng-model="param.code_text">
                                </div>
                                <div class="form-group">
                                    <label for="code_">乡镇/街道编码：</label>
                                    <input type="text" class="form-control" style="width: 180px" placeholder="" ng-model="param.code_">
                                </div>
                                <button type="submit" class="btn btn-primary new-primary" style="margin-left: 10px">查询</button>
                            </form>
                        </div>
                    </div>
                    <!-- 数据表格 -->
                    <div class="table-responsive">
                        <table class="table table-striped b-t b-light text-center">
                            <thead>
                                <tr>
                                    <th>乡镇/街道编码</th>
                                    <th>乡镇/街道名称</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr ng-repeat="item in pageInfo.data">
                                    <td class="v-middle">{{item.code_}}</td>
                                    <td class="v-middle">{{item.code_text}}</td>
                                    <td class="v-middle">
                                        <a ng-click="select(item.id_,item.code_text,item.code_)">
                                    选择
                                </a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <!-- /.table-responsive -->
                    <!-- 底部分页 -->
                    <span data-ng-include=" 'src/tpl/pageInfo.html' ">
                </span>
                </div>
            </div>
            <!-- /.wrapper-data -->
        </div>
        <!-- /.wrapper-md -->
        <div class="modal-footer">
            <button class="btn btn-warning addnew" ng-click="cancel()">
                取消
            </button>
            <button class="btn btn-warning addnew" ng-click="clear()">
                清除
            </button>
        </div>
    </script>
    <!-- 路模态框 -->
    <script type="text/ng-template" id="bmRoadList.html">
        <!-- 内容区域 -->
        <div ng-hide="loading" class="wrapper-md content wrapper-md2">
            <!-- 数据显示 -->
            <div class="wrapper-data clearfix">
                <div class="panel panel-default clearfix">
                    <!-- 头部 -->
                    <div class="panel-heading clearfix">
                        <div class="w-auto">
                            <form ng-submit="search()" class="form-inline">
                                <div class="form-group">
                                    <label for="code_text">路名称：</label>
                                    <input type="text" class="form-control" id="code_text" ng-model="param.code_text">
                                </div>
                                <div class="form-group">
                                    <label for="code_">路编码：</label>
                                    <input type="text" class="form-control" ng-model="param.code_">
                                </div>
                                <button type="submit" class="btn btn-primary new-primary" style="margin-left: 10px">查询</button>
                            </form>
                        </div>
                    </div>
                    <!-- 数据表格 -->
                    <div class="table-responsive">
                        <table class="table table-striped b-t b-light text-center">
                            <thead>
                                <tr>
                                    <th>路编码</th>
                                    <th>路名称</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr ng-repeat="item in pageInfo.data">
                                    <td class="v-middle">{{item.code_}}</td>
                                    <td class="v-middle">{{item.code_text}}</td>
                                    <td class="v-middle">
                                        <a ng-click="select(item.id_,item.code_text,item.code_)">
                                    选择
                                </a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <!-- /.table-responsive -->
                    <!-- 底部分页 -->
                    <span data-ng-include=" 'src/tpl/pageInfo.html' ">
                </span>
                </div>
            </div>
            <!-- /.wrapper-data -->
        </div>
        <!-- /.wrapper-md -->
        <div class="modal-footer">
            <button class="btn btn-warning addNew" ng-click="cancel()">
                取消
            </button>
            <button class="btn btn-warning addNew" ng-click="clear()">
                清除
            </button>
        </div>
    </script>
    <!-- 小区模态框 -->
    <script type="text/ng-template" id="bmQuartersList.html">
        <!-- 内容区域 -->
        <div ng-hide="loading" class="wrapper-md content wrapper-md2">
            <!-- 数据显示 -->
            <div class="wrapper-data clearfix">
                <div class="panel panel-default clearfix">
                    <!-- 头部 -->
                    <div class="panel-heading clearfix">
                        <div class="w-auto">
                            <form ng-submit="search()" class="form-inline">
                                <div class="form-group">
                                    <label for="code_text">小区名称：</label>
                                    <input type="text" class="form-control" id="code_text" ng-model="param.code_text">
                                </div>
                                <div class="form-group">
                                    <label for="code_">小区编码：</label>
                                    <input type="text" class="form-control" id="code_" ng-model="param.code_">
                                </div>
                                <button type="submit" class="btn btn-primary new-primary" style="margin-left: 10px">查询</button>
                            </form>
                        </div>
                    </div>
                    <!-- 数据表格 -->
                    <div class="table-responsive">
                        <table class="table table-striped b-t b-light text-center">
                            <thead>
                                <tr>
                                    <th>小区编码</th>
                                    <th>小区名称</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr ng-repeat="item in pageInfo.data">
                                    <td class="v-middle">{{item.code_}}</td>
                                    <td class="v-middle">{{item.code_text}}</td>
                                    <td class="v-middle">
                                        <a ng-click="select(item.id_,item.code_text,item.code_)">
                                    选择
                                </a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <!-- /.table-responsive -->
                    <!-- 底部分页 -->
                    <span data-ng-include=" 'src/tpl/pageInfo.html' ">
                </span>
                </div>
            </div>
            <!-- /.wrapper-data -->
        </div>
        <!-- /.wrapper-md -->
        <div class="modal-footer">
            <button class="btn btn-warning addNew" ng-click="cancel()">
                取消
            </button>
            <button class="btn btn-warning addNew" ng-click="clear()">
                清除
            </button>
        </div>
    </script>
    <!--警务区代码预警区名称的模态框-->
    <script type="text/ng-template" id="jwq.html">
        <!-- 内容区域 -->
        <div ng-hide="loading" class="wrapper-md content">
            <!-- 数据显示 -->
            <div class="wrapper-data">
                <div class="panel panel-default">
                    <!-- 头部 -->
                    <div class="panel-heading clearfix">
                        <div class="w-auto">
                            <form ng-submit="search()" class="form-inline">
                                <div class="form-group">
                                    <label for="jwqName">警务区名称：</label>
                                    <input type="text" class="form-control" style="width: 180px" id="jwqName" placeholder="填写警务区名称" ng-model="param.JWQMC" name="jwqName">
                                </div>
                                <div class="form-group">
                                    <label for="identity">警务区代码：</label>
                                    <input type="text" class="form-control" name="identity" style="width: 180px" id="JWQMC" placeholder="填写警务区" ng-model="param.JWQDM">
                                </div>
                                <button type="submit" class="btn btn-primary new-primary" style="margin-left: 10px">查询
                                </button>
                            </form>
                        </div>
                    </div>
                    <!-- 数据表格 -->
                    <div class="table-responsive">
                        <table class="table table-striped b-t b-light text-center">
                            <thead>
                                <tr>
                                    <th ng-show="tag==1">选择</th>
                                    <th>警务区名称</th>
                                    <th>警务区代码</th>
                                    <th ng-show="tag==0">操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr ng-repeat="item in pageInfo.data">
                                    <td class="v-middle">{{item.JWQMC}}</td>
                                    <td class="v-middle">{{item.JWQDM}}</td>
                                    <td ng-show="tag==0" class="v-middle">
                                        <a ng-click="selectjwq(item.JWQDM,item.JWQMC)">选择</a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <span data-ng-include=" 'src/tpl/pageInfo.html' "></span>
                </div>
            </div>
        </div>
        <div class="modal-footer">
            <button class="btn btn-warning addNew" ng-click="cancel()">取消</button>
        </div>
    </script>
    <!--现住址模态框-->
    <script type="text/ng-template" id="mHouseList.html">
        <!-- 内容区域 -->
        <div ng-hide="loading" class="wrapper-md content">
            <!-- 数据显示 -->
            <div class="wrapper-data">
                <div class="panel panel-default">
                    <!-- 头部 -->
                    <div class="panel-heading clearfix">
                        <div class="w-auto">
                            <form ng-submit="search()" class="form-inline">
                                <div class="form-group">
                                    <label for="identity">房屋编号：</label>
                                    <input type="text" class="form-control" style="width: 180px" id="identity" placeholder="" ng-model="param.houseCode">
                                </div>
                                <div class="form-group">
                                    <label for="houseName">房屋名称：</label>
                                    <input type="text" class="form-control" id="houseName" style="width: 180px" placeholder="" ng-model="param.houseName">
                                </div>
                                <button type="submit" class="btn btn-primary new-primary" style="margin-left: 10px">查询
                                </button>
                            </form>
                        </div>
                    </div>
                    <!-- 数据表格 -->
                    <div class="table-responsive">
                        <table class="table table-striped b-t b-light text-center">
                            <thead>
                                <tr>
                                    <th ng-show="tag==1">选择</th>
                                    <th>房屋编号</th>
                                    <th>房屋名称</th>
                                    <th>房屋地址</th>
                                    <th ng-show="tag==0">操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr ng-repeat="item in pageInfo.data">
                                    <td ng-show="tag==1" class="v-middle">
                                        <input type="checkbox" ng-checked="isChecked(item.houseId)" class="form-control" ng-model="record.houseId" name="houseId" ng-click="updateSelection($event,item)">
                                    </td>
                                    <td class="v-middle">{{item.houseCode}}</td>
                                    <td class="v-middle">{{item.houseName}}</td>
                                    <td class="v-middle">{{item.address}}</td>
                                    <td ng-show="tag==0" class="v-middle">
                                        <a ng-click="selectDevice(item.houseCode,item.address,item.houseId,item.houseName)">选择</a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <span data-ng-include=" 'src/tpl/pageInfo.html' "></span>
                </div>
            </div>
        </div>
        <div class="modal-footer">
            <button class="btn btn-info addNew" ng-show="tag==1" ng-click="saveHouse()">确定</button>
            <button class="btn btn-warning addNew" ng-click="cancel()">取消</button>
        </div>
    </script>
    <!--维修人员组模态框-->
    <script type="text/ng-template" id="MainGroupList.html">
        <!-- 内容区域 -->
        <div ng-hide="loading" class="wrapper-md content">
            <!-- 数据显示 -->
            <div class="wrapper-data" style="margin-top: 0;">
                <div class="panel panel-default">
                    <!-- 头部 -->
                    <div class="panel-heading clearfix">
                        <div class="w-auto">
                            <form ng-submit="search()" class="form-inline">
                                <div class="form-group" style="width: 30%;">
                                    <label for="name">组名称：</label>
                                    <input type="text" class="form-control" style="width: 160px" placeholder="" ng-model="param.groupName">
                                </div>
                                <button type="submit" class="btn btn-primary new-primary" style="margin-left: 10px">查询
                                </button>
                            </form>
                        </div>
                    </div>
                    <!-- 数据表格 -->
                    <div class="table-responsive">
                        <table class="table table-striped b-t b-light text-center">
                            <thead>
                                <tr>
                                    <th>组名称</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr ng-repeat="item in pageInfo.data" ng-show="item.status == '1'">
                                    <td class="v-middle">{{item.groupName}}</td>
                                    <td class="v-middle">
                                        <a ng-click="selectGroup(item.groupName,item.groupCode)" class="deleBtn">选择</a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <span data-ng-include=" 'src/tpl/pageInfo.html' "></span>
                </div>
            </div>
        </div>
        <div class="modal-footer">
            <button class="btn btn-warning addNew" ng-click="cancel()">取消</button>
        </div>
    </script>
    <!--现住地址-->
    <script type="text/ng-template" id="NowAddress.html">
        <div ng-hide="loading" class="wrapper-md content">
            <!-- 数据显示 -->
            <div class="wrapper-data" style="margin-top: 0">
                <div class="panel panel-default">
                    <!-- 头部 -->
                    <div class="panel-heading clearfix">
                        <div class="w-auto">
                            <form ng-submit="search()" class="form-inline">
                                <label>楼栋地址：</label>
                                <select name="" class="form-control cityinput" ng-change="getarea()" ng-model="icity.code_" id="city">
                                    <option value='' disabled selected style='display:none;'>市区</option>
                                    <option ng-repeat="icity in city" value="{{$index}}" data-code="{{icity.code_}}" ng-bind="icity.code_text"></option>
                                </select>
                                <!--区/县-->
                                <select name="" class="form-control cityinput" id="area" ng-change="getStree()" ng-model="iarea.code_">
                                    <option value='' disabled selected style='display:none;'>区域</option>
                                    <option ng-repeat="iarea in area" value="{{$index}}" data-code="{{iarea.code_}}" ng-bind="iarea.code_text"></option>
                                </select>
                                <!--乡镇/街道-->
                                <select name="" class="form-control cityinput" id="street" ng-change="getRoad()" ng-model="istree.code_">
                                    <option value='' disabled selected style='display:none;'>乡镇/街道</option>
                                    <option ng-repeat="istree in stree" value="{{$index}}" data-code="{{istree.code_}}" ng-bind="istree.code_text"></option>
                                </select>
                                <!--路-->
                                <select name="" class="form-control cityinput" id="road" ng-change="getQuarters()" ng-model="iroad.code_">
                                    <option value='' disabled selected style='display:none;'>路</option>
                                    <option ng-repeat="iroad in roud" value="{{$index}}" data-code="{{iroad.code_}}" ng-bind="iroad.code_text"></option>
                                </select>
                                <!--小区/门牌-->
                                <select name="" class="form-control cityinput" id="quarters" ng-change="getHouseNo()" ng-model="iquarters.code_">
                                    <option value='' disabled selected style='display:none;'>小区/门牌</option>
                                    <option ng-repeat="iquarters in quarters" value="{{$index}}" data-code="{{iquarters.code_}}" ng-bind="iquarters.code_text"></option>
                                </select>
                                <!--楼号-->
                                <input name="buildName" class="form-control cityinput" id="buildName" placeholder="楼号..." ng-model="param.buildName"></input>
                                <label>楼栋编号：</label>
                                <input type="text" id="buildingNo" class="form-control cityinput" placeholder="楼栋编号" ng-model="param.buildingNo">
                                <label>设备编号：</label>
                                <input type="text" id="deviceCode" class="form-control cityinput" placeholder="设备编号" ng-model="param.deviceCode">
                                <label>设备名称：</label>
                                <input type="text" id="deviceName" class="form-control cityinput" placeholder="设备名称" ng-model="param.deviceName">
                                <button type="submit" class="btn btn-primary new-primary" style="margin-left: 10px">查询</button>
                            </form>
                        </div>
                    </div>
                    <!-- 数据表格 -->
                    <div class="table-responsive">
                        <table class="table table-striped b-t b-light text-center">
                            <thead>
                                <tr>
                                    <th>楼栋编号</th>
                                    <th>楼栋地址</th>
                                    <th>设备编号</th>
                                    <th>设备名称</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr ng-repeat="item in pageInfo.data">
                                    <td class="v-middle">{{item.buildingNo}}</td>
                                    <td class="v-middle">{{item.buildingAddress}}</td>
                                    <td class="v-middle">{{item.deviceCode}}</td>
                                    <td class="v-middle">{{item.deviceName}}</td>
                                    <td class="v-middle">
                                        <a ng-hide="item.deviceCode == null " ng-click="selectBuilding(item.buildingId,item.buildingAddress,item.deviceId)">选择</a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <span data-ng-include=" 'src/tpl/pageInfo.html' "></span>
                </div>
            </div>
        </div>
        <div class="modal-footer">
            <button class="btn btn-warning addNew" ng-click="cancel()">取消</button>
        </div>
    </script>
</body>

</html>